package com.dailyblue.java.design.装饰者模式;

public class Dancer extends Decorator {
    private Person person;

    public Dancer(String name, Person person) {
        super(name, person);
        this.person = person;
    }

    @Override
    public void action() {
        System.out.println("跳舞");
        person.action();
    }
}
